package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Miracle yaochengwei on 2021/9/25 12:58
 * 这是一个声明式，远程调用
 */
//先去nacos找 gulimall-coupon，再调用这个coupon/coupon/member/list请求方法
@FeignClient("gulimall-coupon")//nacos远程服务名称
public interface CouponFeignService {
    @RequestMapping("/coupon/coupon/member/list")
    public R membercoupons();
}

